<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">导航</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">控制台</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav navbar-right">
				<li><a href="#">主机配置</a></li>
				<li><a href="#">投产任务</a></li>
				<li><a href="${basePath}/user/index.shtml">权限控制</a></li>
				<li class="dropdown" style="color:#fff;">
					<a aria-expanded="false" aria-haspopup="true"  role="button" data-toggle="dropdown"  
					<@shiro.user>  
						href="#" class="dropdown-toggle qqlogin" >
						${token.nickname?default('未命名')}<span class="caret"></span></a>
						<ul class="dropdown-menu" userid="${token.id}">
							<li><a href="${basePath}/user/index.shtml">个人资料</a></li>
							<li><a href="${basePath}/role/mypermission.shtml">我的权限</a></li>
							<li><a href="javascript:void(0);" onclick="logout();">退出登录</a></li>
						</ul>
					</@shiro.user>  
					<@shiro.guest>   
						 href="javascript:void(0);" onclick="location.href='${basePath}/u/login.shtml'" class="dropdown-toggle qqlogin" >
						<img src="${basePath}/resource/img/avatar.png">&nbsp;登录</a>
					</@shiro.guest>  					
				</li>
        	</ul>
		</div>
	</div>
</nav>